package pwd.allen.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 分页模板
 */
@Data
@NoArgsConstructor
public class PageBean<T> {

    private List<T> pageData = new ArrayList<>();
    private Integer pageNo = 0;
    private Integer pageSize = Integer.valueOf(10);
    private Long totalCount = 0L;

    public PageBean(List<T> pageData, Long totalCount) {
        this.pageData = pageData;
        this.totalCount = totalCount;
    }
}